package com.mycase.im.boot.entity.database;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * @Author ZhuHJay
 * @Date 2021/9/4 11:01
 */
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class ImGroupMessageBody {

    /** 自增长主键id **/
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 消息体id **/
    @TableField(value = "message_body_id", fill = FieldFill.INSERT)
    private String messageBodyId;

    /** 用户id **/
    private String userId;

    /** 消息记录: 0 已删除 1 存在 默认1 **/
    private Integer record;

    /** 消息已读状态 0 未读 1 已读 默认0 **/
    private Integer readStatus;

}
